package cn.xd.itstack.springframework.aop;

/**
 * @Classname TargetResource
 * @Description TODO
 * @Date 2022/6/4 下午5:19
 * @Created by lvxiaodong
 */
public class TargetResource {

    private Object targetResource;

    public TargetResource(Object targetResource){
        this.targetResource = targetResource;
    }


    public Class<?>[] getTargetClass(){
        return targetResource.getClass().getInterfaces();
    }


    public Object getTarget(){
        return targetResource;
    }

}
